package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.biz.AdministrationLeaveApplyForm;
import com.sihai.ehr.model.biz.AdministrationLeaveApplyFormAuditing;
import com.sihai.ehr.model.sys.User;
import com.sihai.ehr.web.pojo.SearchFormPojo;

import java.util.List;

/**
 * @author wxn
 * @since 13-10-17 23:56
 *
 * 行政签核系统 - 请假申请单Service
 */
public interface AdministrationLeaveApplyFormService {
    void save(AdministrationLeaveApplyForm form)throws Exception;

    AdministrationLeaveApplyForm get(Long id)throws Exception;

    boolean delete(String ids)throws Exception;

    LimitedList<AdministrationLeaveApplyForm> findAdministrationLeaveApplyForm(User user, SearchFormPojo searchFormPojo, Limit limit, Sorter sorter)throws Exception;

    List<List<AdministrationLeaveApplyFormAuditing>> findAdministrationLeaveApplyFormAuditing(Long formId)throws Exception;

    void saveAdministrationLeaveApplyFormAuditingProcess(Long formId)throws Exception;
}
